<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>流动搜索框 - jQuery EasyUI 演示</title>
	<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
	<link rel="stylesheet" type="text/css" href="../demo.css">
	<script type="text/javascript" src="../../jquery.min.js"></script>
	<script type="text/javascript" src="../../jquery.easyui.min.js"></script>
</head>
<body>
	<h2 title="Fluid SearchBox">流动搜索框</h2>
	<p title="This example shows how to set the width of SearchBox to a percentage of its parent container.">　　本例展示如何设置搜索框的宽度为其父容器的百分比值。</p>
	<div style="margin:20px 0;"></div>
	<div class="easyui-panel" style="width:100%;max-width:400px;padding:30px 60px;">
		<div style="margin-bottom:20px">
			<input class="easyui-searchbox" data-options="label:'宽度：100%',labelPosition:'top',prompt:'… 请输入 …',menu:'#mm'" style="width:100%">
		</div>
		<div style="margin-bottom:20px">
			<input class="easyui-searchbox" data-options="label:'宽度：80%',labelPosition:'top',prompt:'… 请输入 …'" style="width:80%">
		</div>
	</div>
	<div id="mm">
		<div data-options="name:'all',iconCls:'icon-ok'" title="All News">全部消息</div>
		<div data-options="name:'sports'" title="Sports News">体育新闻</div>
	</div>
</body>
</html>